/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.buzzwords.behaviors;

import com.buzzwords.model.Buzzword;
import java.util.List;

/**
 *
 * @author devinpartlow
 */
public abstract class DefinitionBehavior extends DatabaseBehavior {

    @Override
    public boolean create(Object value) {
        Buzzword buzzword;
        if (value instanceof Buzzword) {
            buzzword = (Buzzword) value;
        } else {
            throw new IllegalArgumentException("Search value must be a Tour");
        }

        return persist(buzzword);
    }

    @Override
    abstract public List<Object> read(Object value, List<String> properties);

    @Override
    public boolean update(Object value) {
        throw new UnsupportedOperationException("Not supported yet.");

    }

    @Override
    public boolean delete(Object value) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
